<?php

class negara{

	var $db;

	public function __construct(){
		$this->db = new DBClass();
	}	

	public function get_all_negara($start, $page){
		$query = "Select id_nationality, code, nationality From nationality";
		$query.=" limit $start, $page";

		$rows = $this->db->getRows($query);

		return $rows;

	}	

	public function get_num_row(){
		$query = "Select count(*) as jml From nationality";
		$rows = $this->db->getRows($query);

		return	$rows[0]['jml']	;
	}



}	